package routers

import (
	"github.com/astaxie/beego"
	"grab-train-ticket/grab-ticket4go/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	//在beego官方文档中没找到类似java设置contextPath根路径的配置，用autoprefix代替
	beego.AutoPrefix("grab-train-ticket", &controllers.TicketController{})
	beego.Include(&controllers.TicketController{})
}
